from django.urls import path, re_path, include

from stall import views

urlpatterns = [
    path('stall_show/', views.StallShowView.as_view(actions={'get': 'get_stalls'})),
    path('zone_show/', views.ZoneShowView.as_view(actions={'get': 'get_zones'})),
    path('get_region/', views.GetRegionView.as_view(actions={'get': 'get_region'})),
    path('food_show/', views.FoodShowView.as_view(actions={'get': 'get_foods'})),
    path('part_show/', views.PartShowView.as_view(actions={'get': 'get_parts'})),
    path('get_stall_nums/', views.StallNumChoseView.as_view(actions={'get': 'get_stall_nums'})),
    path('create_stall/', views.CreateStallView.as_view(actions={'post': 'create_stall'})),
    path('region_show/', views.RegionShowView.as_view(actions={'get': 'get_regions'})),
    path('region_show/', views.RegionShowView.as_view(actions={'get': 'get_regions'})),
    path('get_stall/', views.GetStallView.as_view(actions={'post': 'get_stall'})),
    path('change_stall_state/', views.ChangeStallStateView.as_view(actions={'post': 'change_stall_state'})),
    path('create_food/', views.CreateFoodView.as_view(actions={'post': 'create_food'})),
    path('update_food/', views.UpdateFoodView.as_view(actions={'post': 'update_food'})),
    path('del_food/', views.DelFoodView.as_view(actions={'post': 'del_food'})),
    path('create_food_sort/', views.CreateFoodSortView.as_view(actions={'post': 'create_food_sort'})),
    path('update_food_sort/', views.UpdateFoodSortView.as_view(actions={'post': 'update_food_sort'})),
    path('del_food_sort/', views.DelFoodSortView.as_view(actions={'post': 'del_food_sort'})),
    path('get_bill/', views.GetBillView.as_view(actions={'get': 'get_bill'})),
    path('add_food/', views.AddFoodView.as_view(actions={'post': 'add_food'})),
]
